home *** CD-ROM | disk | FTP | other *** search
/ PC-SIG: World of Education / PC-SiG's World of Education.iso / run / 2602 / scatter.alg < prev    next >
Encoding:
Text File  |  1989-05-26  |  1.2 KB  |  28 lines

  1. { SCATTER.ALG - shows how to plot individual data points without the
  2.     interpolation normally done by DAN (i.e. a scatter plot).
  3.  
  4.     Do not set a duration value since DAN sets it automatically
  5.     based on the processing span in the data files.
  6. }
  7.                        { set main label for plot }
  8. label = "Scatter Plot Example (for two data sets)";
  9.  
  10. interp=off;            { turn interpolation off }
  11. tracenum=off;          { suppress trace numbers }
  12. grid=-100;             { suppress grid inside plot area }
  13. trace = block;         { plot data points using blocks }
  14. file="scatter1.dat";   { data file name }
  15.                        { create temporary data file and autoscale x & y axis }
  16. scatdat = read ;xmin=0; xmax=10;{& scaley(scatdat) & scalex(scatdat);}
  17. ymin=0; ymax=10;
  18. plot(scatdat);         { plot the data in temporary file }
  19. trace = vline;         { plot using verticle lines to 0 }
  20.                        { re-read same data file and put verticle lines }
  21. plot(scatdat);         {    under plot pts }
  22.  
  23.  
  24. trace=diamond;         { put second set of data points on plot }
  25. file = "scatter2.dat"; { Note: since scaling was done on first data file }
  26. plot(read);            {       only, some of these points are off scale }
  27.  
  28.